package com.dreamstations.changshads.entity;

import java.io.Serializable;

/**
 * Created by 7YHong on 2016/6/25.
 */
public class BaseBean implements Serializable {
    protected long id;
    protected String title, content, cover, time;
    protected int viewed, template, typeId;
    protected boolean front;

    public BaseBean() {
    }

    public BaseBean(long id, String title, String content, String cover, String time, int viewed, int template, int typeId, boolean front) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.cover = cover;
        this.time = time;
        this.viewed = viewed;
        this.template = template;
        this.typeId = typeId;
        this.front = front;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getViewed() {
        return viewed;
    }

    public void setViewed(int viewed) {
        this.viewed = viewed;
    }

    public int getTemplate() {
        return template;
    }

    public void setTemplate(int template) {
        this.template = template;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public boolean isFront() {
        return front;
    }

    public void setFront(boolean front) {
        this.front = front;
    }

    @Override
    public String toString() {
        return "BaseBean{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", doc='" + content + '\'' +
                ", cover='" + cover + '\'' +
                ", time='" + time + '\'' +
                ", viewed=" + viewed +
                ", template=" + template +
                ", typeId=" + typeId +
                ", front=" + front +
                '}' + "\n";
    }
}